package com.smart.community.parking.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smart.community.parking.entity.ParkingRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 停车记录Mapper接口
 * 
 * @author Wu.Liang
 * @since 2024-12-21
 */
@Mapper
public interface ParkingRecordMapper extends BaseMapper<ParkingRecord> {

    /**
     * 根据车牌号和未离开状态查询停车记录
     * 
     * @param licensePlate 车牌号
     * @return 停车记录
     */
    ParkingRecord selectByLicensePlateAndNoExit(@Param("licensePlate") String licensePlate);
} 